package v3.chapter2.innerStaticClass;

import v3.chapter2.innerStaticClass.PublicClass.PrivateClass;

public class Run {

	public static void main(String[] args) {
		PublicClass publicClass = new PublicClass();
		publicClass.setUsername("usernameValue");
		publicClass.setPassword("passwordValue");
		System.out.println(publicClass.getUsername() + " " + publicClass.getPassword());

		PrivateClass privateClass = new PrivateClass();
		privateClass.setAge("ageValue");
		privateClass.setAddreass("addressValue");

		System.out.println(privateClass.getAge() + " " + privateClass.getAddreass());

	}

}

class PublicClass {
	static private String username;
	static private String password;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	static class PrivateClass {
		private String age;
		private String addreass;

		public String getAge() {
			return age;
		}

		public void setAge(String age) {
			this.age = age;
		}

		public String getAddreass() {
			return addreass;
		}

		public void setAddreass(String addreass) {
			this.addreass = addreass;
		}

		public void printPublicProperty() {
			System.out.println(username + " " + password);
		}
	}
}